// the network position. So we shove the end of the timespan out to
// ensure the right edge of that time slider includes us.
//
- time_max.setTime_t(realtime_positioning ? kml_time_max.toTime_t() + 600 : kml_time_max.toTime_t());
+ time_max = realtime_positioning ? kml_time_max.addSecs(600) : kml_time_max;
writer->writeTextElement("end", time_max.toPrettyString());
}
writer->writeEndElement(); // Close gx:TimeSpan tag
pin = wpt->icon_descr;
} else if (wpt->icon_descr.contains("-unfound")) {
pin = unfoundmarker;
- } else if (wpt->GetCreationTime().toTime_t() > current_time().toTime_t() - 3600 * 24 * thresh_days) {
+ } else if (wpt->GetCreationTime() > current_time().addSecs(-3600 * 24 * thresh_days)) {
pin = newmarker;
} else {
pin = oldmarker;